package com.yangjian.main;

class JJPoint2d {

	float x;
	float y;
	
	public JJPoint2d(float x, float y) {
		super();
		this.x = x;
		this.y = y;
	}
	public double distance() {
		return Math.sqrt(x * x + y * y);
	}
	public String toString() {
		return "(" + x + "," + y + ")";
	}
}
